package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class BetweenPredicatePart2 implements WhenOperand {

    private int beginIndex;
    private int endIndex;
    boolean not;
    boolean asymmetric;
    boolean symmetric;
    RowValuePredicand rowValuePredicand1;
    RowValuePredicand rowValuePredicand2;

    public BetweenPredicatePart2(int beginIndex,
                                 boolean not,
                                 boolean asymmetric,
                                 boolean symmetric,
                                 RowValuePredicand rowValuePredicand1,
                                 RowValuePredicand rowValuePredicand2) {
        this.beginIndex = beginIndex;
        this.endIndex = rowValuePredicand2.getEndIndex();
        this.not = not;
        this.asymmetric = asymmetric;
        this.symmetric = symmetric;
        this.rowValuePredicand1 = rowValuePredicand1;
        this.rowValuePredicand2 = rowValuePredicand2;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public boolean isNot() {
        return not;
    }

    public boolean isAsymmetric() {
        return asymmetric;
    }

    public boolean isSymmetric() {
        return symmetric;
    }

    public RowValuePredicand getRowValuePredicand1() {
        return rowValuePredicand1;
    }

    public RowValuePredicand getRowValuePredicand2() {
        return rowValuePredicand2;
    }

}
